home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 December
/
PCWorld_2007-12_cd.bin
/
domacnost a kancelar
/
autoit
/
autoit-v3-setup.exe
/
Examples
/
Helpfile
/
_SQLite_Escape.au3
< prev
next >
Wrap
Text File
|
2007-09-08
|
442b
|
14 lines
#include <SQLite.au3>
#include <SQLite.dll.au3>
_SQLite_Startup()
Local $sTestString,$i,$aRow
For $i = 1 To 255
$sTestString &= Chr($i)
Next
_SQLite_Open()
_SQLite_Exec(-1,"CREATE TABLE test (a)")
_SQLite_Exec(-1,"INSERT INTO test VALUES (" & _SQLite_Escape($sTestString) & ")")
_SQLite_QuerySingleRow(-1,"SELECT a FROM test LIMIT 1",$aRow)
If $aRow[0] = $sTestString Then ConsoleWrite("! identical !" & @LF)
_SQLite_Shutdown()